package com.wmh.baseservice.robot.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 机器信息表
* @TableName robot_info
* @author 青石
*/
@TableName(value = "robot_info")
@Accessors(chain = true)
@Data
public class RobotInfo implements Serializable {

    /**
    * 机器 编号
    */
    @TableId(value = "robot_number")
    private Long robotNumber;


    /**
    * 机器 IP
    */
    @TableField(value = "robot_ip")
    private String robotIp;

    /**
    * 远程连接代码
    */
    @TableField(value = "remote_code")
    private String remoteCode;

    /**
    * 远程连接密码
    */
    @TableField(value = "remote_pwd")
    private String remotePwd;

    /**
    * 机器接口端口
    */
    @TableField(value = "flask_port")
    private String flaskPort;

    /**
    * 机器状态 id
    */
    @TableField(value = "status_id")
    private Integer statusId;

    /**
    * 正在执行的任务 id
    */
    @TableField(value = "task_id")
    private Integer taskId;

    /**
    * 正在执行的任务模板 id
    */
    @TableField(value = "task_template_id")
    private String taskTemplateId;

    /**
    * 创建时间
    */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 更新时间
    */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
    * 任务名称
    */
    @TableField(value = "task_name")
    private String taskName;


    public static final String ROBOT_NUMBER = "robot_number";
    public static final String ROBOT_IP = "robot_ip";
    public static final String REMOTE_CODE = "remote_code";
    public static final String REMOTE_PWD = "remote_pwd";
    public static final String FLASK_PORT = "flask_port";
    public static final String STATUS_ID = "status_id";
    public static final String TASK_ID = "task_id";
    public static final String TASK_TEMPLATE_ID = "task_template_id";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String TASK_NAME = "task_name";

    private static final long serialVersionUID = 1L;
}
